const http=require('http');
const fs=require('fs');
const server=http.createServer(function(req,res){
    const path='./WWW'+req.url;
    fs.readFile(path,function(err,data){
        if(err){
            res.write('404')
        }else{
            res.write(data)
        }
        res.end()
    })
}).listen(8080)